<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <meta content="yes" name="apple-mobile-web-app-capable" />
  <meta name="apple-mobile-web-app-status-bar-style" content="blank">
  <meta content="telephone=no" name="format-detection" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>活动:猜星星</title>
  <link rel="stylesheet" href="./css/mreset.css">
  <link rel="stylesheet" href="./css/swiper-3.4.2.min.css">
  <link rel="stylesheet" href="./css/main.css">
  <script src="js/jquery-1.11.3.min.js"></script>
  <script src="js/flexible.js"></script>
  <script src="js/swiper-3.4.2.min.js"></script>
  <script src="/js/djx.js"></script>

</head>
<body ontouchstart>
  <div class="wap">
    <div class="guess-star">
      <div class="djs">
        距本期竞猜结束还有 <span class="hours">00</span>时 <span class="minutes">00</span>分 <span class="seconds">00</span>秒
      </div>
      <div class="guess-box">
        <div class="guess">
          <div class="odd">
            <i></i><i></i><i></i><i></i><i></i>
          </div>
          <div class="even">
            <i></i><i></i><i></i><i></i><i></i>
          </div>
        </div>
        <div class="guess-btn">
          <a href=""></a>
        </div>
      </div>
    </div>
  </div>
  <script>
    //星星交互
    $('.guess').find('i').click(function(){
      ($(this).addClass('active').siblings('i').removeClass('active'))
        .parent('div').siblings('div').find('i').removeClass('active')
    })
    //倒计时调用
    $('.djs').downCount({
      date: '07/26/2018 19:05:00',
      offset: +10
    }, function () {
      alert('秒杀已结束');
    });
  </script>
</body>
</html>